package b3.widget.national
{
	import b3.model.*;
	import b3.net.*;
	import b3.scene.home.*;
	import b3.widget.*;
	import b3.widget.basic.*;
	
	import flash.events.MouseEvent;
	
	public class NationalIcon extends BasicIcon
	{
		public function NationalIcon()
		{
			var IconBgr:Class = ResourceHelper.getInstance().getClassByName("NationalIcon");
			super(IconBgr, "国庆活动", 1);
			addEventListener(MouseEvent.CLICK, onMouseClick);
		}
		
		private function onMouseClick(event:MouseEvent):void
		{
			if (HomeScene.getInstance().getOperationMode() == HomeScene.NONEMODE)
			{
				var nationalDialog:NationalDialog = new NationalDialog;
				WidgetManager.getInstance().popOut([nationalDialog], true);
			}
		}
	}
}